//
//  StoreTopSelectView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/8.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "StoreTopSelectView.h"

@implementation StoreTopSelectView

-(id)initWithFrame:(CGRect)aFrame inSuperView:(UIView *)aSuperView{
    if (self = [super initWithFrame:aFrame inSuperView:aSuperView]) {
        CGFloat butWidth = (KScreenWidth - 1)/2;
        NSArray * arr = @[@"所有地区",@"筛选"];
        for (int i=0; i<2; i++) {
            GLGWButton * but = [[GLGWButton alloc] initWithFrame:CGRectMake(butWidth*i+1*i, 0, butWidth, self.height) titleText:arr[i] titleLableFont:SYSTEMFONT(14) titleLableColor:[UIColor colorWithHexString:@"#333333"] inSuperView:self];
            if (i==0) {
                GLGWView * lineView = [[GLGWView alloc] initWithFrame:CGRectMake(kX_With_View(but, 0), kHeightProportion_In_iPhoneTriploid(10), 1, kHeightProportion_In_iPhoneTriploid(14)) inSuperView:self];
                lineView.backgroundColor = [UIColor colorWithHexString:@"#DEDEDE"];
            }
        }
        //
        GLGWView * bottomLine = [[GLGWView alloc] initWithFrame:CGRectMake(0, kHeightProportion_In_iPhoneTriploid(34), KScreenWidth, 1) inSuperView:self];
        bottomLine.backgroundColor = [UIColor colorWithHexString:@"#EAEAEA"];
    }
    return self;
}

@end
